<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'comment-form',
	'enableAjaxValidation'=>true,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<div class="form-row">
		<?php echo $form->labelEx($model,'author', array('class'=>'label')); ?>
		<?php echo $form->textField($model,'author',array('size'=>60,'maxlength'=>128, 'class'=>'txt')); ?>
		<?php echo $form->error($model,'author'); ?>
	</div>

	<div class="form-row">
		<?php echo $form->labelEx($model,'email', array('class'=>'label')); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>128, 'class'=>'txt')); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="form-row">
		<?php echo $form->labelEx($model,'url', array('class'=>'label')); ?>
		<?php echo $form->textField($model,'url',array('size'=>60,'maxlength'=>128, 'class'=>'txt')); ?>
		<?php echo $form->error($model,'url'); ?>
	</div>

	<div class="form-row">
		<?php echo $form->labelEx($model,'content', array('class'=>'label')); ?>
		<?php echo $form->textArea($model,'content',array('rows'=>6, 'cols'=>50, 'class'=>'txt')); ?>
		<?php echo $form->error($model,'content'); ?>
	</div>

	<div class="row buttons">
        <?php echo CHtml::linkButton($model->isNewRecord ? 'Submit' : 'Save', array('class'=>'btn-default btn-light')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->